<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page isELIgnored="false"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html lang="en">
<head>
<meta charset="utf-8">
<title>GrowingTree</title>
<link rel="stylesheet" type="text/css"
	href="all/lib/bootstrap/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="all/stylesheets/theme.css">
<link rel="stylesheet" href="all/lib/font-awesome/css/font-awesome.css">
<script src="all/lib/jquery-1.7.2.min.js" type="text/javascript"></script>
<!-- Demo page code -->
<style type="text/css">
#line-chart {
	height: 300px;
	width: 800px;
	margin: 0px auto;
	margin-top: 1em;
}

.brand {
	font-family: georgia, serif;
}

.brand .first {
	color: #ccc;
	font-style: italic;
}

.brand .second {
	color: #fff;
	font-weight: bold;
}
</style>
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144"
	href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114"
	href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72"
	href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed"
	href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body class="">
	<div class="navbar">
		<div class="navbar-inner">
			<ul class="nav pull-right">
				<li><a href="#"
					class="hidden-phone visible-tablet visible-desktop" role="button">设置</a></li>
			</ul>
			<a class="brand" href="index.html"><span class="first">Growing</span>
				<span class="second">Tree</span></a>
		</div>
	</div>
	<div class="sidebar-nav">
		<a href="#" role="button" class="dropdown-toggle"
			data-toggle="dropdown"> <i class="icon-user"></i> 管理员已登录 <%=session.getAttribute("loginName") %>
		</a> <a href="login.html">注销</a>
		<form class="search form-inline">
			<input type="text" placeholder="Search...">
		</form>
		<a href="#index-menu" class="nav-header" data-toggle="collapse"></a><a
			href="/GrowingTree/information" class="nav-header"> <i
			class="icon-dashboard"></i>首页
		</a> <a href="#manage-menu" class="nav-header" data-toggle="collapse"><i
			class="icon-dashboard"></i>系统管理</a>
		<ul id="manage-menu" class="nav nav-list collapse in">
			<li><a href="/GrowingTree/teacherAccount">老师管理</a></li>
			<li><a href="/GrowingTree/parentAccount">家长管理</a></li>
			<li><a href="/GrowingTree/classAccount">班级管理</a></li>
		</ul>
		<a href="#message-menu" class="nav-header" data-toggle="collapse">
			<i class="icon-dashboard"></i>通知管理
		</a>
		<ul id="message-menu" class="nav nav-list collapse in">
			<li><a href="/GrowingTree/school-message.jsp">校方通知</a></li>
		</ul>
		<a href="#accounts-menu" class="nav-header" data-toggle="collapse"></a>
		<a href="reset-password.jsp" class="nav-header"> <i
			class="icon-briefcase"></i>重置密码
		</a> <a href="#help-menu" class="nav-header" data-toggle="collapse"></a> <a
			href="help.jsp" class="nav-header"> <i class="icon-question-sign"></i>帮助
		</a>
	</div>
	<div class="content">
		<div class="header">
			<h1 class="page-title">编辑家长资料</h1>
		</div>
		<ul class="breadcrumb">
			<li><a href="/GrowingTree/index.jsp">首页</a> <span
				class="divider">/</span></li>
			<li><a href="/GrowingTree/parents.jsp">所有家长</a> <span
				class="divider">/</span></li>
			<li class="active">家长</li>
		</ul>
		<div class="container-fluid">
			<div class="row-fluid">
				<div class="btn-toolbar">
					<button class="btn btn-primary">
						<i class="icon-save"></i> 保存
					</button>
					<a href="#myModal" data-toggle="modal" class="btn">删除</a>
					<div class="btn-group"></div>
				</div>
				<div class="well">
					<ul class="nav nav-tabs">
						<li class="active"><a href="#home" data-toggle="tab">家长信息</a></li>
						<li><a href="#profile" data-toggle="tab">密码</a></li>
					</ul>
					<div id="myTabContent" class="tab-content">
						<div class="tab-pane active in" id="home">
							<form id="tab" name="parentform"
								action="/GrowingTree/modifyParent?showP=${CertainParentInformation.userId}">
								<table border="1">
									<c:forEach var="CertainParentInformation"
										items="${pageBean.list}">
										<tr>
											<td>家长ID：</td>
											<td><input type="text" name="userId"
												value="${CertainParentInformation.userId}"
												readonly="readonly"></td>
										</tr>
										<tr>
											<td>用户姓名：</td>
											<td><input type="text" name="userId"
												value="${CertainParentInformation.userName}"></td>
										</tr>
										<tr>
											<td>家长姓名：</td>
											<td><input type="text" name="userId"
												value="${CertainParentInformation.parentName}"></td>
										</tr>
										<tr>
											<td colspan="2" align="center"><input type="submit"
												value="确认修改">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
												type="reset" value="清空"></td>
										</tr>
									</c:forEach>
								</table>
							</form>
						</div>
						<div class="tab-pane fade" id="profile">
							<form id="tab2">
								<label>新密码</label> <input type="password" class="input-xlarge">
							</form>
						</div>
					</div>
				</div>
				<div class="modal small hide fade" id="myModal" tabindex="-1"
					role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
					<div class="modal-body">
						<p class="error-text">
							<i class="icon-warning-sign modal-icon"></i>是否删除该用户？
						</p>
					</div>
					<div class="modal-footer">
						<button class="btn" data-dismiss="modal" aria-hidden="true">取消</button>
						<button class="btn btn-danger" data-dismiss="modal">删除</button>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script src="all/lib/bootstrap/js/bootstrap.js"></script>
	<script type="text/javascript">
        $("[rel=tooltip]").tooltip();
        $(function() {
            $('.demo-cancel-click').click(function(){return false;});
        });
    </script>
</body>
</html>


